// js-cookie是个好东西 => 让你零成本上手cookie
// localStorage.getItem('name')    =>  Cookies.get('name')
// localStorage.setItem('name', value)  =>  Cookies.set('name', value)
// localStorage.removeItem('name')  => Cookies.remove('name')

import Cookies from 'js-cookie'

const TokenKey = 'hrsaas-94-token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
